package org.edu.modules.stu.base.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.edu.common.base.BaseEntity;

import java.sql.Date;

import org.hibernate.validator.constraints.Length;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.io.Serializable;

/**
 * entity-家庭成员管理
 */
@TableName("ve_stu_family")
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "家庭成员管理对象", description = "ve_stu_family")
public class VeStuFamily extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField
    @ApiModelProperty(value = "学号")
    @Length(max = 20)
    private String code;

    @TableField
    @ApiModelProperty(value = "学生id")
    private Integer stuId;

    @TableField
    @ApiModelProperty(value = "姓名")
    @Length(max = 30)
    private String name;

    @TableField
    @ApiModelProperty(value = "关系码")
    @Length(max = 20)
    private String gxm;

    @TableField
    @ApiModelProperty(value = "生日")
    @JsonFormat(timezone = "GMT+8", locale = "zh", pattern = "yyyy-MM-dd")
    private Date birth;

    @TableField
    @ApiModelProperty(value = "家庭成员职业码")
    @Length(max = 30)
    private String jtcyzym;

    @TableField
    @ApiModelProperty(value = "所在单位")
    @Length(max = 100)
    private String szdw;

    @TableField
    @ApiModelProperty(value = "政治面貌")
    @Length(max = 30)
    private String zzmmm;

    @TableField
    @ApiModelProperty(value = "电话")
    @Length(max = 20)
    private String homePhone;

    @TableField
    @ApiModelProperty(value = "移动电话")
    @Length(max = 11)
    private String phone;

    //系统字段补充，20250206 lbh sta====================================================
    /**是否监护人*/
    @Excel(name = "是否监护人", width = 15.0D)
    @ApiModelProperty("是否监护人")
    private String sfjhr;
    /**身份证件类型码*/
    @Excel(name = "身份证件类型码", width = 15.0D)
    @ApiModelProperty("身份证件类型码")
    private String sfzjlxm;
    /**身份证件号*/
    @Excel(name = "身份证件号", width = 15.0D)
    @ApiModelProperty("身份证件号")
    private String sfzjh;
    /**家庭类别*/
    @Excel(name = "家庭类别", width = 15.0D)
    @ApiModelProperty("家庭类别")
    private String jtlb;


    //系统字段补充，20250206 lbh end====================================================
}
